import router from '@/router';
import {
	service,
	request
} from '../../../../api/service.js';

export default {
	namespaced: true,
	state: {
		assemblyHeader: []
	},

	actions: {
		async LoadAssemblyList({
			dispatch
		}, {
			projectCode = '',
			projectName = '',
			equipmentName = '',
			childrenCode = '',
			readyorbulk='',
			type = 0,
			pageNumber = 1,
			pageSize = 10
		} = {}) {
			var response = await request({
				url: `MES/MESQaAssembly/LoadAssemblyList?
				projectCode=${projectCode}&
				projectName=${projectName}&
				equipmentName=${equipmentName}&
				childrenCode=${childrenCode}&
				readyorbulk=${readyorbulk}&
				type=${type}&
				pageNumber=${pageNumber}&
				pageSize=${pageSize}&
				`,
				method: 'get'
			});
			return response;
		},
	},
	mutations: {
		get(state) {
			// state.assemblyHeader =
		}
	},

};
